﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true"  ValidateRequest="false"
CodeBehind="CookieSettings.aspx.cs" 
Inherits="FlexnetConsultants.CookieNotification.CookieSettingsPage"
 DynamicMasterPageFile="~masterurl/default.master" %>

<%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="/_controltemplates/InputFormControl.ascx" %> 
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="/_controltemplates/ButtonSection.ascx" %> 

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">

</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">

<SharePoint:FormDigest ID="FormDigest1" runat="server" />

    <div id="PageWarning" style="color:red;display:none">
        <SharePoint:EncodedLiteral ID="litPageWarning" runat="server" text="" EncodeMethod="HtmlEncode"/>
    </div> 
     <div id="PageMessage" style="color:red;display:none">
        <SharePoint:EncodedLiteral ID="litPageMessage" runat="server" text="" EncodeMethod="HtmlEncode"/>
    </div> 
		   
    <table width="100%" class="propertysheet" cellspacing="0" cellpadding="0" border="0">
        <tr>
            <td class="ms-descriptionText">
                <h2>Cookie Notification Settings</h2>
                <asp:ValidationSummary ID="ValSummary" HeaderText="Errors found" DisplayMode="BulletList"
                    ShowSummary="True" runat="server"></asp:ValidationSummary>
            </td>
        </tr>
        <tr>
            <td>
                <img src="/_layouts/images/blank.gif" width="10" height="1" alt="" />
            </td>
        </tr>
    </table>
    <table border="0" cellspacing="0" cellpadding="0" width="100%" class="ms-propertysheet">
	<wssuc:ButtonSection runat="server" ShowStandardCancelButton="false">
		<Template_Buttons>
				<asp:Button id="OKButton1" runat="server" class="ms-ButtonHeightWidth" onclick="OKButton_Click" text="Ok" accesskey="o"/>
				<asp:Button id="CancelButton1" runat="server" class="ms-ButtonHeightWidth" onclick="CancelButton_Click" text="Cancel"  CausesValidation="false" accesskey="c"/>
		</Template_Buttons>
	</wssuc:ButtonSection>
   <wssuc:InputFormSection runat="server" 
	    Title="" 
	    Description="" >
        <Template_InputFormControls>
            	 <wssuc:InputFormControl runat="server" LabelText="" AccessKey="" >				           
                          <Template_Control>
                               <asp:HyperLink ID="lnkFlexnetConsultants" runat="server" Text="Flexnet Consultants" NavigateUrl="http://www.flexnetconsult.co.uk" Target="_blank" />			                                            
                             </Template_Control>
                          </wssuc:InputFormControl>
                           <wssuc:InputFormControl runat="server" LabelText="" AccessKey="" >				           
                          <Template_Control>
                               <asp:HyperLink ID="lnlCodePlex" runat="server" Text="CodePlex Project" NavigateUrl="http://sp2010cookieapproval.codeplex.com" Target="_blank" />			                                            
                             </Template_Control>
                          </wssuc:InputFormControl>
		</Template_InputFormControls>           
	</wssuc:InputFormSection>
     <wssuc:InputFormSection runat="server" 
	    Title="CookieName" 
	    Description="Name of the cookie set to confirm acceptance of cookies on the site" >
        <Template_InputFormControls>
            	 <wssuc:InputFormControl runat="server" LabelText="" AccessKey="" >				           
                          <Template_Control>
                                <wssawc:InputFormTextBox ID="txtCookieName" Runat="server" />	
                                 <wssawc:InputFormRequiredFieldValidator id="InputFormRequiredFieldValidator1"
                                    runat="server" ControlToValidate="txtCookieName"
                                    ErrorMessage="Please enter a Cookie Name" /> 			                                            
                             </Template_Control>
                          </wssuc:InputFormControl>
		</Template_InputFormControls>        
	</wssuc:InputFormSection>
	
    <wssuc:InputFormSection runat="server" 
	    Title="Notification Display" 
	    Description="Message displayed when the accept Cookie is not detected" >
        <Template_InputFormControls>
            <wssuc:InputFormControl runat="server" LabelText="" AccessKey="">				       
			            <Template_Control>
                        <wssuc:InputFormControl runat="server" LabelText="Message Title" AccessKey="">	
                          <Template_Control>
                            <wssawc:InputFormTextBox  ID="txtCookieMessageTitle" Columns="60" Runat="server"  />				            
                           </Template_Control>
                          </wssuc:InputFormControl>  
                         
                         <wssuc:InputFormControl runat="server" LabelText="Message Body" AccessKey="">	
                          <Template_Control>
                            <wssawc:InputFormTextBox  ID="txtCookieMessageBody" Columns="60" Runat="server" TextMode="MultiLine" Rows="6" />				            
                            <wssawc:InputFormRequiredFieldValidator id="InputFormRequiredFieldValidator2"
                                    runat="server" ControlToValidate="txtCookieMessageBody"
                                    ErrorMessage="Please enter a Cookie Message" />                            
                                     </Template_Control>
                          </wssuc:InputFormControl>  
                          
                          <wssuc:InputFormControl runat="server" LabelText="Confirm Cookies Link title" AccessKey="" >				           
                          <Template_Control>
                            <wssawc:InputFormTextBox  ID="txtAcceptCookieLinkTitle" Columns="35" Runat="server" />				            
                                <wssawc:InputFormRequiredFieldValidator id="InputFormRequiredFieldValidator3"
                                    runat="server" ControlToValidate="txtAcceptCookieLinkTitle"
                                    ErrorMessage="Please enter a link title" />                                                        
                             </Template_Control>

                          </wssuc:InputFormControl>
                                                    
			            </Template_Control>
                    </wssuc:InputFormControl>
		</Template_InputFormControls>        
	</wssuc:InputFormSection>

	
    <wssuc:InputFormSection runat="server" 
	    Title="Enable the notification control" 
	    Description="" >
        <Template_InputFormControls>
            	 <wssuc:InputFormControl runat="server" LabelText="" AccessKey="" >				           
                          <Template_Control>
                                <wssawc:InputFormCheckBox ID="chkEnabled" Runat="server" />				                                            
                             </Template_Control>
                          </wssuc:InputFormControl>
		</Template_InputFormControls>        
	</wssuc:InputFormSection>

     <wssuc:InputFormSection runat="server" 
	    Title="Debug Mode - always displays the notice even if the acceptance cookie is set" 
	    Description="Use this when testing the message. Turn this off when testing is finished" >
        <Template_InputFormControls>
            	 <wssuc:InputFormControl runat="server" LabelText="Make sure this is unchecked for production." AccessKey="" >				           
                          <Template_Control>
                                <wssawc:InputFormCheckBox ID="chkDebugMode" Runat="server" />				                                            
                             </Template_Control>
                          </wssuc:InputFormControl>
		</Template_InputFormControls>        
	</wssuc:InputFormSection>
	<wssuc:ButtonSection runat="server" ShowStandardCancelButton="false">
		<Template_Buttons>
				<asp:Button id="OKButton2" runat="server" class="ms-ButtonHeightWidth" onclick="OKButton_Click" text="Ok" accesskey="o"/>
				<asp:Button id="CancelButton2" runat="server" class="ms-ButtonHeightWidth" onclick="CancelButton_Click" text="Cancel"  CausesValidation="false" accesskey="c"/>
		</Template_Buttons>
	</wssuc:ButtonSection>
	</table>    

    <span>Version: <asp:Literal ID="lblVersion" runat="server" /></span>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
Cookie Notification Settings
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
Cookie Notification Settings
</asp:Content>
